As predicted by Weiser about twenty years ago, the ubiquitous computing era in
which technology integrates people's lives in such way that they do not even
realize it has become reality. This new paradigm has become possible thanks to
the popularization of devices such as smartphones and tablets that combined with the extraordinary progress 
of wireless technologies for short and long range, have made possible
scenarios for pervasive applications. However, pervasive applications require
the developer to deal with issues such as: (i) extract from the environment they are inserted context information as 
user's presence, (ii) handle the need for successive changing communication
technologies for short and long range due to high dynamicity of the
environments. This work presents an infrastructure for
supporting pervasive applications developers, providing an abstraction for
the complexity related to the communication and to the context-aware switching
between communication technologies present in these devices. The validation is
performed through a case study that utilizes NFC, Bluetooth and Wi-Fi technologies, 
with management of these technologies according to application needs.
